package com.winsdom.enums;

public enum RedisKey {
    //组织树
    ORGANIZATION_TREE("organization:tree"),
    //组织下的员工
    ORGANIZATION_USERS("organization:users"),
    //组织+园区+楼盘（已授权）+楼栋+楼层+资源
    ORGANIZATION("organization:"),
    //组织+园区+楼盘（已授权）+楼栋+楼层
    ORGANIZATION_FLOOR("organization:floor"),
    //登录账号下（已授权）带有任务的楼盘
    METERREADING_BUILDING("meterreading:buildings:"),
    //登录账号下的楼盘（已授权）下的资源
    METERREADING_BUILDINGRESOURCE("meterreading:buildingsresource:"),
    //用户权限
    USER_PERMISSION("user:permission");



    private final String value;

    RedisKey(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }
}
